package edu.eam.proyectodesarrollojpa.entidades;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
 * The persistent class for the LIDER_SEMILLERO database table.
 * 
 */
@Entity
@Table(name = "REUNION")
public class Reunion implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(allocationSize = 1, name = "REUNION_IDLIDER_IDREUNION_GENERATOR", sequenceName = "SEC_REUNION")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "REUNION_IDLIDER_IDREUNION_GENERATOR")
	@Column(name = "IDREUNION")
	private Long idReunion;
	
	// uni-directional many-to-one association to TipoAlternativaInversion
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_SEMILLEROREUNION")
	private Semillero semillero;
	
    @Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FECHA_REUNION")
	private Date fechaReunion;


	public Reunion() {
	}


	public Long getIdReunion() {
		return idReunion;
	}


	public void setIdReunion(Long idReunion) {
		this.idReunion = idReunion;
	}


	public Semillero getSemillero() {
		return semillero;
	}


	public void setSemillero(Semillero semillero) {
		this.semillero = semillero;
	}


	public Date getFechaReunion() {
		return fechaReunion;
	}


	public void setFechaReunion(Date fechaReunion) {
		this.fechaReunion = fechaReunion;
	}

	
	
}